From: Roger Pau Monné Date: Thu, 20 Oct 2022 14:36:48 +0000 (+0200) Subject: test/vpci: add dummy cfcheck define X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~115 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b71419530d70d9b1f2ba524aabd27a9efe08f52f;p=xen.git test/vpci: add dummy cfcheck define Some vpci functions got the cfcheck attribute added, but that's not defined in the user-space test harness, so add a dummy define in order for the harness to build. Fixes: 4ed7d5525f ('xen/vpci: CFI hardening') Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Acked-by: Anthony PERARD Release-acked-by: Henry Wang --- diff --git a/tools/tests/vpci/emul.h b/tools/tests/vpci/emul.h index 2e1d3057c9..386b15eb86 100644 --- a/tools/tests/vpci/emul.h +++ b/tools/tests/vpci/emul.h @@ -37,6 +37,7 @@ #define prefetch(x) __builtin_prefetch(x) #define ASSERT(x) assert(x) #define __must_check __attribute__((__warn_unused_result__)) +#define cf_check #include "list.h"